package model.requirement4;

// 意大利香肠装饰器
public class PepperoniDecorator extends PizzaDecorator {
    public PepperoniDecorator(CustomPizza pizza) {
        super(pizza);
    }

    @Override
    public String getDescription() {
        return pizza.getDescription() + ", 意大利香肠";
    }

    @Override
    public double getCost() {
        return pizza.getCost() + 2.00; // 意大利香肠的额外价格
    }
}
